package com.hliushi.drools.web;

import com.hliushi.drools.service.RuleService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author llhuang10
 * @date 2021/10/12 9:58
 */
@RestController
@RequestMapping("/drools")
public class DroolsController {

    @Resource
    private RuleService ruleService;


    @GetMapping("/rule")
    public String rule() {
        ruleService.rule();
        return "ok";
    }

}
